import request from '@/utils/request'

// 查询切焊加热列表
export function listEmission(query) {
  return request({
    url: '/weldHeat/emission/list',
    method: 'get',
    params: query
  })
}

// 查询切焊加热参数
export function getWeldHeatEmissionParameters(query) {
  return request({
    url: '/weldHeat/emission/getWeldHeatEmissionParameters',
    method: 'get',
    params: query
  })
}

// 查询切焊加热详细
export function getEmission(id) {
  return request({
    url: '/weldHeat/emission/' + id,
    method: 'get'
  })
}

// 新增切焊加热
export function addEmission(data) {
  return request({
    url: '/weldHeat/emission',
    method: 'post',
    data: data
  })
}

// 修改切焊加热
export function updateEmission(data) {
  return request({
    url: '/weldHeat/emission',
    method: 'put',
    data: data
  })
}

// 删除切焊加热
export function delEmission(id) {
  return request({
    url: '/weldHeat/emission/' + id,
    method: 'delete'
  })
}

// 导出切焊加热
export function exportEmission(query) {
  return request({
    url: '/weldHeat/emission/export',
    method: 'get',
    params: query
  })
}

// 保存上传数据
export function changeData(data) {
  return request({
    url: '/weldHeat/emission/changeData',
    method: 'post',
    data: data
  })
}
